* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screen {
    width: 320px;
    height: 640px;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 95vh;
    max-height: 750px;
    overflow: hidden;
}

.screen-title {
    text-align: center;
    padding: 12px;
    background-color: #ff6b6b;
    color: white;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 登录注册界面 */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.app-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.app-logo i {
    font-size: 50px;
    color: white;
}

.input-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.input-field:focus {
    border-color: #ff6b6b;
    box-shadow: 0 2px 10px rgba(255,107,107,0.1);
    outline: none;
}

.btn {
    width: 100%;
    padding: 15px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255,107,107,0.2);
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #fff8f8;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255,107,107,0.1);
}

.text-center {
    text-align: center;
}

/* 绑定界面 */
.binding-screen {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.binding-code {
    font-size: 32px;
    letter-spacing: 5px;
    margin: 30px 0;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 2px 5px rgba(255,107,107,0.1);
}

.qr-code {
    width: 200px;
    height: 200px;
    background-color: #f9f9f9;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 主页/仪表盘 */
.dashboard {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.partner-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255,107,107,0.2);
}

.avatar i {
    font-size: 30px;
    color: white;
}

.partner-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.relationship-days {
    color: #888;
    font-size: 14px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    background-color: white;
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.action-btn i {
    font-size: 24px;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.action-btn span {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.status-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.status-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.status-card-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.status-card-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 底部导航 */
.bottom-nav {
    position: static;
    margin-top: auto;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    text-align: center;
    transition: all 0.3s;
}

.nav-item:hover {
    transform: translateY(-3px);
}

.nav-item i {
    font-size: 20px;
    color: #888;
    transition: all 0.3s;
}

.nav-item.active i {
    color: #ff6b6b;
}

.nav-item span {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 5px;
    transition: all 0.3s;
}

.nav-item.active span {
    color: #ff6b6b;
}

/* 日历界面 */
.calendar-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.calendar {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header i {
    color: #ff6b6b;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
}

.calendar-header i:hover {
    background-color: #fff8f8;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.3s;
}

.calendar-day:hover:not(:empty) {
    background-color: #fff8f8;
}

.calendar-day.weekend {
    color: #ff6b6b;
}

.calendar-day.event {
    background-color: #ffe0e0;
    color: #ff6b6b;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255,107,107,0.1);
}

.events-list {
    margin-top: 20px;
}

.event-item {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid #ff6b6b;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.event-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.event-title {
    font-weight: bold;
    margin: 5px 0;
    font-size: 16px;
}

.event-desc {
    font-size: 14px;
    color: #666;
}

/* 活动记录界面 */
.activities-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.add-activity {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
    transition: all 0.3s;
    z-index: 10;
}

.add-activity:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
}

.add-activity i {
    font-size: 24px;
    color: white;
}

.activity-item {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.activity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.activity-title {
    font-weight: bold;
    font-size: 18px;
}

.activity-date {
    font-size: 14px;
    color: #888;
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 20px;
}

.activity-photos {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    overflow-x: auto;
    padding: 5px 0;
}

.activity-photo {
    width: 80px;
    height: 80px;
    background-color: #f9f9f9;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.activity-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 生理期记录界面 */
.period-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.period-calendar {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.period-day {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.3s;
}

.period-day.period {
    background-color: #ffe0e0;
    color: #ff6b6b;
    box-shadow: 0 2px 5px rgba(255,107,107,0.1);
}

.period-day.ovulation {
    background-color: #e0f0ff;
    color: #6b9fff;
    box-shadow: 0 2px 5px rgba(107,159,255,0.1);
}

.period-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.period-stat {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.period-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.period-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.period-stat-label {
    font-size: 14px;
    color: #888;
}

/* 健康数据界面 */
.health-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.steps-comparison {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.steps-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.steps-title {
    font-weight: bold;
    font-size: 18px;
}

.steps-date {
    font-size: 14px;
    color: #888;
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 20px;
}

.steps-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding: 0 20px;
}

.steps-bar {
    width: 60px;
    background: linear-gradient(to top, #ff6b6b, #ff8e8e);
    border-radius: 10px 10px 0 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(255,107,107,0.2);
    transition: all 0.3s;
}

.steps-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.3);
}

.steps-bar.partner {
    background: linear-gradient(to top, #6b9fff, #8eb5ff);
    box-shadow: 0 5px 15px rgba(107,159,255,0.2);
}

.steps-bar.partner:hover {
    box-shadow: 0 8px 20px rgba(107,159,255,0.3);
}

.steps-count {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.steps-label {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 电量界面 */
.battery-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.battery-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.battery-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.battery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.battery-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.battery-user {
    font-weight: bold;
    font-size: 18px;
}

.battery-status {
    font-size: 14px;
    color: #888;
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 20px;
}

.battery-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.battery-level {
    height: 100%;
    background: linear-gradient(to right, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.battery-level.low {
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
}

.battery-level.medium {
    background: linear-gradient(to right, #ffb74d, #ffd54f);
}

.battery-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 电池统计样式 */
.battery-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.battery-stat-item {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.battery-stat-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.battery-stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 开关样式 */
.battery-settings {
    margin-top: 15px;
}

.setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ff6b6b;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 胶囊标签样式 */
.capsule-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.capsule-tag {
    background-color: #fff8f8;
    color: #ff6b6b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.capsule-images {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.capsule-image {
    width: 80px;
    height: 80px;
    background-color: #f9f9f9;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* 事件计划样式 */
.event-plan {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.event-plan i {
    margin-right: 8px;
    color: #ff6b6b;
}

/* 步数统计样式 */
.steps-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.steps-stat-item {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.steps-stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.steps-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.steps-stat-change {
    font-size: 12px;
    color: #888;
}

.steps-stat-change.positive {
    color: #4caf50;
}

.steps-stat-change.negative {
    color: #ff6b6b;
}

.steps-goal-setting {
    margin-top: 15px;
}

.steps-goal-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.steps-goal-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.steps-goal-slider input {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #f0f0f0;
    outline: none;
}

.steps-goal-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b6b;
    cursor: pointer;
}

.steps-goal-value {
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.challenge-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    margin-top: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.challenge-btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

/* 时空胶囊界面 */
.capsule-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.capsule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.capsule-item {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.capsule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.capsule-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.capsule-title {
    font-weight: bold;
    font-size: 18px;
}

.capsule-date {
    font-size: 14px;
    color: #888;
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 20px;
}

.capsule-content {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.capsule-locked {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px 15px;
    margin-bottom: 15px;
    text-align: center;
}

.capsule-locked i {
    font-size: 40px;
    color: #888;
    margin-bottom: 15px;
}

.capsule-countdown {
    font-size: 14px;
    color: #ff6b6b;
    text-align: center;
    font-weight: 500;
}

/* 聊天界面 */
.chat-screen {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.message {
    margin-bottom: 20px;
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.message.received .message-content {
    background-color: white;
    border-bottom-left-radius: 5px;
}

.message.sent .message-content {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 10px;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 25px;
    padding: 5px 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.chat-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    outline: none;
    font-size: 14px;
}

.chat-input i {
    color: #888;
    font-size: 20px;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input i:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* 相册界面 */
.album-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.album-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.album-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.album-item-date {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

/* 设置界面 */
.settings-screen {
    padding: 20px;
    background: linear-gradient(to bottom, #fff8f8, #fff);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 5px;
}

.settings-item {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.settings-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.settings-item-left {
    display: flex;
    align-items: center;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    background-color: #fff8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.settings-item-icon i {
    font-size: 20px;
    color: #ff6b6b;
}

.settings-item-text {
    font-size: 16px;
    font-weight: 500;
}

.settings-item-right i {
    color: #888;
    transition: all 0.3s;
}

.settings-item:hover .settings-item-right i {
    color: #ff6b6b;
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        gap: 10px;
    }
    
    .screen {
        width: 100%;
        max-width: 320px;
        height: 640px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    animation: fadeIn 0.5s ease-out;
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #222;
    }
    
    .screen {
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .input-field {
        background-color: rgba(255,255,255,0.05);
        color: white;
        border-color: rgba(255,255,255,0.1);
    }
    
    .btn-outline {
        border-color: #ff6b6b;
    }
    
    .status-card, .event-item, .activity-item, .battery-card, .capsule-item, .settings-item {
        background-color: rgba(255,255,255,0.05);
    }
    
    .status-card-value, .event-title, .activity-title, .settings-item-text {
        color: white;
    }
    
    .status-card-title, .event-desc, .relationship-days {
        color: rgba(255,255,255,0.7);
    }
}

/* 针对各个页面内容区域设置合适的高度和内边距 */
.dashboard, .calendar-screen, .activities-screen, .album-screen, 
.health-screen, .battery-screen, .capsule-screen, .chat-screen, 
.settings-screen, .login-screen, .binding-screen {
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(95vh - 50px - 60px);
}

/* 使内容区域内的滚动更平滑 */
.dashboard::-webkit-scrollbar, 
.calendar-screen::-webkit-scrollbar,
.activities-screen::-webkit-scrollbar,
.album-screen::-webkit-scrollbar,
.health-screen::-webkit-scrollbar,
.battery-screen::-webkit-scrollbar,
.capsule-screen::-webkit-scrollbar,
.chat-screen::-webkit-scrollbar,
.settings-screen::-webkit-scrollbar,
.login-screen::-webkit-scrollbar,
.binding-screen::-webkit-scrollbar {
    display: none;
}

/* 使内容区域内的滚动更平滑（Firefox） */
.dashboard, .calendar-screen, .activities-screen, .album-screen,
.health-screen, .battery-screen, .capsule-screen, .chat-screen,
.settings-screen, .login-screen, .binding-screen {
    scrollbar-width: none;
}

/* 主页功能卡片样式 */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: #fff8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.feature-icon i {
    font-size: 20px;
    color: #ff6b6b;
}

.feature-info {
    flex: 1;
}

.feature-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 12px;
    color: #888;
}

/* 距离标签样式 */
.distance-badge {
    background-color: #fff8f8;
    color: #ff6b6b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

/* 大姨妈日历样式 */
.period-screen {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.period-month {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.period-header i {
    color: #ff6b6b;
    font-size: 18px;
    cursor: pointer;
}

.period-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
}

.period-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.period-days div {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
}

.period-day.period {
    background-color: #ffe0e0;
    color: #ff6b6b;
    font-weight: bold;
}

.period-day.ovulation {
    background-color: #e0f0ff;
    color: #6b9fff;
    font-weight: bold;
}

/* 大姨妈信息卡片样式 */
.period-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.period-info-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.period-info-icon {
    width: 40px;
    height: 40px;
    background-color: #fff8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.period-info-icon i {
    font-size: 18px;
    color: #ff6b6b;
}

.period-info-value {
    font-weight: bold;
    font-size: 16px;
}

.period-info-label {
    font-size: 10px;
    color: #888;
}

/* 大姨妈提醒卡片样式 */
.period-reminder-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.period-reminder-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ff6b6b;
}

.period-reminder-title i {
    margin-right: 8px;
}

.period-reminder-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.period-reminder-items {
    display: flex;
    justify-content: space-around;
}

.period-reminder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.period-reminder-item i {
    font-size: 20px;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.period-reminder-item span {
    font-size: 12px;
    color: #666;
}

/* 位置界面样式 */
.location-screen {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-map {
    border-radius: 15px;
    overflow: hidden;
    height: 220px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    position: relative;
}

.location-map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    position: relative;
}

.location-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.location-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-marker i {
    font-size: 24px;
    color: #ff6b6b;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.location-marker span {
    font-size: 12px;
    background-color: white;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.my-location {
    top: 40%;
    left: 30%;
}

.partner-location {
    top: 60%;
    left: 70%;
}

.partner-location i {
    color: #6b9fff;
}

.location-distance {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.location-distance i {
    color: #ff6b6b;
}

.location-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.location-card-title {
    font-weight: bold;
}

.location-card-time {
    font-size: 12px;
    color: #888;
}

.location-card-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.location-card-content i {
    color: #ff6b6b;
    font-size: 16px;
}

.location-settings {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.location-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.location-setting-item:last-child {
    margin-bottom: 0;
}

.location-setting-text {
    font-size: 14px;
    color: #666;
}